package com.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("slf4j")
@RestController
public class slf4j {

    private static Logger logger= LoggerFactory.getLogger(slf4j.class);

    @RequestMapping("info")
    public String info(){
logger.info("记录slf4j的日子");
return "记录日志";
    }



}
